package es.ats.codington.festival.Mapper;

import java.lang.reflect.Array;
import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import es.ats.codington.festival.domain.Event;
import es.ats.codington.festival.domain.Place;
import es.ats.codington.festival.domain.Visitor;

public class SignUpMapper implements RowMapper<Integer[]>{

	@Override
	public Integer[] mapRow(ResultSet resultSet, int numRow) throws SQLException {
		Event event = new Event();
		Visitor visitor = new Visitor();
		
		event.setiDevent(resultSet.getInt("idevent"));
		visitor.setiDvisitor(resultSet.getInt("idvisitor"));
	
		Integer[] signed ={visitor.getiDvisitor(), event.getiDevent()};
		
		return signed;
	}
}
